/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import com.thinkgem.jeesite.common.persistence.ActEntity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 盘点Entity
 * @author 盘点
 * @version 2019-12-21
 */
public class Pd extends ActEntity<Pd> {
	
	private static final long serialVersionUID = 1L;
	private String username;		// 人员
	private String cdate;		// 日期
	private User user;		// 人员ID
	private Warehouse loc;		// 库位ID
	private PdCl cl;		// 策略
	private String beginCdate;		// 开始 日期
	private String endCdate;		// 结束 日期
	private List<SpdDetail> spdDetailList = Lists.newArrayList();		// 子表列表
	private String procInsId;		// 流程id
	public Pd() {
		super();
	}

	public Warehouse getLoc() {
		return loc;
	}

	public void setLoc(Warehouse loc) {
		this.loc = loc;
	}

	public PdCl getCl() {
		return cl;
	}

	public void setCl(PdCl cl) {
		this.cl = cl;
	}

	public Pd(String id){
		super(id);
	}

	@Length(min=0, max=255, message="人员长度必须介于 0 和 255 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=255, message="日期长度必须介于 0 和 255 之间")
	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
	public String getBeginCdate() {
		return beginCdate;
	}

	public void setBeginCdate(String beginCdate) {
		this.beginCdate = beginCdate;
	}
	
	public String getEndCdate() {
		return endCdate;
	}

	public void setEndCdate(String endCdate) {
		this.endCdate = endCdate;
	}

	public List<SpdDetail> getSpdDetailList() {
		return spdDetailList;
	}

	public void setSpdDetailList(List<SpdDetail> spdDetailList) {
		this.spdDetailList = spdDetailList;
	}
}